﻿using RayDen.Library.Components.Color.Types;
using RayDen.Library.Core.Primitives;
using RayDen.Library.Entity.Scene;
using RayDen.RayEngine.Data;

namespace RayDen.RayEngine.Scene
{
    public class VolumeObject : ScenePrimitive<TriangleMeshInfo, VolumeMaterialInfo<IColorType>>
    {
        public VolumeObject(TriangleMeshInfo prim, VolumeMaterialInfo<IColorType> mat)
            : base(prim, mat)
        {
            for (var i = (uint)prim.StartTriangle; i < prim.EndTriangle; i++)
            {
                indexes.Add(i);
            }
        }

        public override ScenePrimitiveType PrimitiveType
        {
            get { return ScenePrimitiveType.Volume; }
        }
    }
}